#ifndef _HOSTCOMPUTER_H_
#define _HOSTCOMPUTER_H_

#include "app_include.h"

typedef enum
{
	FUN_ID1=0xA1,
	FUN_ID2=0xA2,
	FUN_ID3=0xA3,
	FUN_ID4=0xA4,
	FUN_ID5=0xA5,
	FUN_ID6=0xA6,
	FUN_ID7=0xA7,
	FUN_ID8=0xA8,
	FUN_ID9=0xA9,
	FUN_ID10=0xAA,
	FUN_ID_Drone=0xAF,
	FUN_ID_EStat=0xAE,
	FUN_ID_DEBUG=0xAD,
}HC_FUN_ID;

#define HC_HEAD 0x88;

void HC_Send_DroneData(int16_t* ACC_DATA,int16_t* GYRO_DATA,int16_t* MAG_DATA,int16_t* ANGLE_DATA);
void HC_Send_EStatData(uint16_t* THROT,uint16_t* YAW,uint16_t* ROLL,uint16_t* PITCH,uint16_t* AUX,uint16_t* PWM,uint16_t* VOLTAGE);
void HC_Send_Data_float(HC_FUN_ID id,float* mydata,uint8_t mylength);

uint8_t HC_SUM(uint8_t* buf,uint8_t length);
	






#endif

